import type { IllnessTime } from '@/enums'
import { flagLook, timeLong } from '@/services/constants'

const getTimeLongText = (illnessTime: IllnessTime) =>
  timeLong.find((item) => item.value === illnessTime)?.label

const getFlagLookText = (consultFlag: 0 | 1) =>
  flagLook.find((item) => item.value === consultFlag)?.label

export { getTimeLongText, getFlagLookText }
